package com.hl.sfzy.entity;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.stereotype.Component;

/**
 * t_sys_question
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Component
public class SysQuestion implements Serializable {
    /**
     * 问题id
     */
    private Integer id;

    /**
     * 问题标题
     */
    private String questionTitle;

    /**
     * 问题内容
     */
    private String questionContent;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 用户信息
     */
    private SysUser sysUser;

    /**
     * 发布时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date questionPublishtime;

    /**
     * 最新回复时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date rtime;

    /**
     * 回复总数
     */
    private Integer replyTotal;

    /**
     * 是否删除：0正常1删除
     */
    private String del;


    private static final long serialVersionUID = 1L;
}